import Relay from "react-relay";

export default class ReqPayOrderMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { reqPayOrder }`;
    }

    getVariables() {
        return {
            argsInput: {
                desp:this.props.desp,
                money:this.props.money,
                orderId:this.props.orderId,
                uid:this.props.uid,
                financeId:this.props.financeId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on reqPayOrderPayload {
            reqPayOrder {
                errorCode
                totalResult
                value
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
              fragment on reqPayOrderPayload {
                    reqPayOrder {
                        errorCode
                        totalResult
                        value
                    }
             }
            `]
        }];
    }

}

